package com.learn.sunday.stock;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 测试command line未执行是否可以访问接口，测试结果是可以
 */
@Component
@Slf4j
public class TestCommandLine implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        log.info("command line start......");
        Thread.sleep(60_000);
        log.info("command line end......");
    }
}
